﻿<Gui:ViewControl x:Class="Outcoder.Calcium.Modules.Output.OutputView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Gui="clr-namespace:Outcoder.Calcium.Gui" 
    xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" 
    xmlns:Data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">
	<Controls:DockPanel x:Name="ContentPanel">
		<Data:DataGrid x:Name="DataGrid" AutoGenerateColumns="False" ItemsSource="{Binding OutputMessages}" IsReadOnly="True">
			<Data:DataGrid.Columns>
				<Data:DataGridTextColumn Header="Time" Binding="{Binding CreatedOn}" Width="100"/>
				<Data:DataGridTextColumn Header="Category" Binding="{Binding Category}" Width="80" />
				<Data:DataGridTextColumn Header="Message" Binding="{Binding Message}" />
			</Data:DataGrid.Columns>
		</Data:DataGrid>
		<!--<ListView HorizontalContentAlignment="Stretch" ItemsSource="{Binding OutputMessages}" FontSize="8">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="Time" DisplayMemberBinding="{Binding Path=CreatedOn}" Width="100"/>
					<GridViewColumn Header="Category" DisplayMemberBinding="{Binding Path=Category}" Width="80"/>
					<GridViewColumn Header="Message" DisplayMemberBinding="{Binding Path=Message}" Width="200"/>
				</GridView>
			</ListView.View>
		</ListView>-->

	</Controls:DockPanel>
</Gui:ViewControl>
